<?php 
class Login extends CI_Controller {
	public function index(){
		// $this->load->view("welcome_message");
		// $this->load("input");
		$this->load->database();
		$username = $this->input->post('username');
		$password = $this->input->post('password');
		$email = $this->input->post('email');
		$phoneNumber = $this->input->post('phoneNumber');

		// $countryCode = $this->input->post("countryCode");

		// echo "test\n";
		// echo "The Username is " . $username . ";\nThe phoneNumber is " . $phoneNumber . ";\nThe countryCode is " . $countryCode . ";\n";
		$this->output
    ->set_content_type('application/json')
    ->set_output(json_encode(array('userName' => $username, 'password' => $password, 'email' => $email, 'phoneNumber' => $phoneNumber)));
    
	}
}
?>